* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #F2C36B;
    background-image: url(./枇杷nkf.jpg);
    background-repeat: no-repeat;
    background-size: cover;
}

.calculator {
    height: 700px;
    width: 460px;
    background-color: #A9D9C2;
    border-radius: 60px;
    box-shadow: 0 -1em 1em rgba(0, 0, 0, 0.3) inset,
        0 0.5em 1em rgba(255, 255, 255, 0.1) inset,
        0 -0.5em 1em rgba(255, 255, 255, 0.2),
        0 1em 1em rgba(0, 0, 0, 0.3);
}

.bar {
    display: flex;
    justify-content: center;
    padding-top: 10px;
}

.bar span {
    height: 2px;
    width: 110px;
    background-color: #D98982;
}

.screen {
    height: 220px;
    display: flex;
    color: rgb(16, 17, 17);
    font-size: 40px;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 20px;
    padding-top: 10px;
    overflow: hidden;
    position: relative;
}

.screen:after {
    display: block;
    content: '';
    position: absolute;
    box-shadow: 0 0 0.3em 0.2em rgb(89, 88, 88)inset,
        0 0.5px 2px 0.5px rgba(9, 9, 9, 0.6);
    width: 420px;
    height: 190px;
    border-radius: 30px;
    z-index: 500;
    overflow: hidden;
    background-color: #A9D9C2;
    opacity: .8;
}

.current {
    font-size: 60px;
}

.buttons {
    display: grid;
    grid-template-rows: repeat(5, 1fr);
    grid-template-columns: repeat(4, 1fr);
    padding-left: 10px;
}

.buttons button {
    width: 70px;
    height: 70px;
    font-size: 40px;
    border-radius: 50%;
    background-color: #F2BE5C;
    color: #8C3D35;
    border: none;
    margin: 10px;
    box-shadow: 2px 8px 16px rgba(16, 15, 15, 0.5);
}

.buttons .btn-del {
    width: 180px;
    border-radius: 40px;
    grid-column-start: 1;
    grid-column-end: 3;
}

.buttons .btn-equal {
    width: 290px;
    border-radius: 40px;
    grid-column: 2/5;
}

.buttons .function {
    background-color: #F2A74B;
}

.buttons button:active {
    filter: brightness(240%);
}